package com.app.controller.miniProgram;

import com.app.model.AwardModel;
import com.app.model.NoticeModel;
import com.app.service.AwardService;
import com.app.service.NoticeService;
import com.app.service.UserService;
import com.app.util.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@Controller
@RequestMapping("/api")
public class AwardController {
    @Autowired
    private AwardService awardService;


    @Autowired
    UserService userService;
    /**
     * 奖励
     * @return
     * @throws Exception
     */
    @GetMapping("/getAward")
    public Result<Object> getNoticeList(){
        AwardModel model = awardService.getModel();
        return Result.success(model);
    }


}
